package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.domain.User;
import com.itheima.mapper.UserMapper;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

/**
 * @PackageName: com.itheima.service.impl
 * @ClassName: UserServiceImpl
 * @Author: zhangwendong
 * @Date: 2020/4/25 19:08
 * @Description: 登录功能service
 */
@Service(interfaceClass = UserService.class)
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User findByUserName(String username) {
        User byUserName = userMapper.findByUserName(username);
        System.out.println(byUserName);
        return byUserName;
    }
}
